<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layuiAdmin 网站用户 iframe 框</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="__ADMIN_STATIC__/src/css/daokr.css" media="all">
</head>
<body>

    <div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
        <div class="layui-form-item">
          <label class="layui-form-label">登录名</label>
          <div class="layui-input-inline">
            <input type="text" value="{$admin.username}" name="username" lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">登录密码</label>
            <div class="layui-input-inline">
              <input type="password" value="" name="password" lay-verify="required" placeholder="请输入登录密码" autocomplete="off" class="layui-input">
            </div>
        </div>    
        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-inline">
              <input type="text" value="{$admin.email}" name="email" lay-verify="email" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">真实姓名</label>
            <div class="layui-input-inline">
              <input type="text" value="{$admin.real_name}" name="real_name"  placeholder="请输入真实姓名" autocomplete="off" class="layui-input">
            </div>
        </div>    
        <div class="layui-form-item">
            <label class="layui-form-label">角色</label>
            <div class="layui-input-inline">
              <select name="role_id" lay-verify="required" lay-filter="test">
                <option value="">请选择</option>
                  {foreach $roles as $vo} 
                      <option value="{$vo.role_id}" {if condition="$vo.role_id eq $admin.role_id"} selected {/if}>{$vo.title}</option>
                  {/foreach}
              </select>
            </div>
        </div> 
        <div class="layui-form-item">
          <label class="layui-form-label">审核状态</label>
          <div class="layui-input-inline">
            <input type="checkbox" lay-filter="switch" {if condition="$admin.status eq 1"} checked {/if} name="status" lay-skin="switch" lay-text="通过|待审核">
          </div>
        </div>
        <div class="layui-form-item layui-hide">
          <input type="button" lay-submit lay-filter="LAY-user-back-submit" id="LAY-user-back-submit" value="确认">
        </div>
      </div>
    
      <script src="__ADMIN_STATIC__/src/daokr.js"></script>  
      <script>
      layui.config({
        base: '__ADMIN_STATIC__/admin/' //静态资源所在路径
      }).extend({
        index: 'lib/index' //主入口模块
      }).use(['index', 'form'], function(){
        var $ = layui.$
        ,form = layui.form ;
      })
      </script>
</body>
</html>